import request from '@/utils/request'

// 查询休假明细列表
export function listOaVacationDetails(query) {
  return request({
    url: '/details/oaVacationDetails/list',
    method: 'get',
    params: query
  })
}

// 查询休假明细详细
export function getOaVacationDetails(id) {
  return request({
    url: '/details/oaVacationDetails/' + id,
    method: 'get'
  })
}

// 保存休假明细
export function saveOaVacationDetails(data) {
  return request({
    url: '/details/oaVacationDetails/save',
    method: 'post',
    data: data
  })
}

// 删除休假明细
export function delOaVacationDetails(id) {
  return request({
    url: '/details/oaVacationDetails/' + id,
    method: 'delete'
  })
}

// 导出休假明细
export function exportOaVacationDetails(query) {
  return request({
    url: '/details/oaVacationDetails/export',
    method: 'get',
    params: query
  })
}
